import type { Language } from '@/types/base'

import { _Language } from '@/enums'
import { zhCN, dateZhCN, enUS, dateEnUS, zhTW, dateZhTW } from 'naive-ui'

export const Menus: Menu[] = [
	{
		id: '001',
		label: '首页',
		isLeaf: true,
		path: '/home'
	},
	{
		id: '002',
		label: '基础运行系统',
		path: '/base'
	},
	{
		id: '00201',
		label: '基础管理',
		parentId: '002',
		path: '/base/base'
	},
	{
		id: '0020101',
		label: '人员管理',
		parentId: '00201',
		isLeaf: true,
		path: '/base/base/user'
	},
	{
		id: '0020102',
		label: '角色管理',
		parentId: '00201',
		isLeaf: true,
		path: '/base/base/role'
	},
	{
		id: '008',
		label: '酒店系统',
		path: '/hotel'
	},
	{
		id: '00801',
		label: '酒店管理',
		parentId: '008',
		isLeaf: true,
		path: '/hotel/hotel'
	},
	{
		id: '00802',
		label: '房间管理',
		parentId: '008',
		isLeaf: true,
		path: '/hotel/room'
	},
	{
		id: '090',
		label: 'Demo',
		path: '/demo'
	},
	{
		id: '09001',
		label: 'Demo',
		parentId: '090',
		isLeaf: true,
		path: '/demo/demo'
	},
	{
		id: '09002',
		label: 'Demo1',
		parentId: '090',
		isLeaf: true,
		path: '/demo/demo1'
	},
	{
		id: '09003',
		label: 'Demo2',
		parentId: '090',
		isLeaf: true,
		path: '/demo/demo2'
	},
	{
		id: '099',
		label: '关于',
		isLeaf: true,
		path: '/about'
	}
]

export const Languages: Language[] = [
	{
		id: _Language.zhCN,
		label: '简体中文',
		language: zhCN,
		dateLanguage: dateZhCN
	},
	{
		id: _Language.zhTW,
		label: '繁體中文',
		language: zhTW,
		dateLanguage: dateZhTW
	},
	{
		id: _Language.enUS,
		label: '英文',
		language: enUS,
		dateLanguage: dateEnUS
	}
]

export const ViewPath = {
	Home: '/home'
}
